<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\model;

use think\Model;

class OeBatchProjectModel extends Model
{
    /**
     * @var int 状态-未使用
     */
    public const STATUS_DISABLE = 0;

    /**
     * @var int 状态-搭建中
     */
    public const STATUS_LOAD = 1;

    /**
     * @var int 状态-已完成
     */
    public const STATUS_ENABLE = 2;

    /**
     * @var int 定时类型-立即搭建
     */
    public const CRONTAB_TYPE_NOW = 0;

    /**
     * @var int 定时类型-定时搭建
     */
    public const CRONTAB_TYPE_TIME = 1;

    /**
     * @var int 定时类型-分批次搭建
     */
    public const CRONTAB_TYPE_BATCH = 2;

    /**
     * @var int 分批次搭建-立即开始
     */
    public const CRONTAB_IS_NOW = 1;

    /**
     * @var int 分批次搭建-项目类型
     */
    public const CRONTAB_BATCH_PROJECT = 1;

    /**
     * @var int 状态-部分成功
     */
    public const STATUS_HALF_SUCCESS = 3;

    protected $autoWriteTimestamp = true;

    protected $name = 'oe_batch_project';
}
